﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SpaceInvaders
{
    public static class HUD
    {
        public static Texture2D lifeText2d = GerenciadorDeCena.player.texture;
        public static Vector2 lifePosition = new Vector2(1, 549);

        public static void Draw(SpriteBatch spriteBatch)
        {
            for (int n = 0; n < Jogador.lifes; n++)
            {
                spriteBatch.Draw(lifeText2d, new Vector2(lifePosition.X * ((n * 46) + 1),lifePosition.Y), Color.Red);
            }
            spriteBatch.DrawString(Game1.testFont, "Pontos: " + Ponto.Points, new Vector2(600, lifePosition.Y), Color.Yellow);
        }
    }
}
